package com.bw.goods_module.category;

import com.bw.goods_module.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class CategoryAdapter extends BaseQuickAdapter<CategoryEntity.Value, BaseViewHolder> {
    public CategoryAdapter() {
        super(R.layout.item_category);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CategoryEntity.Value value) {
        baseViewHolder.setText(R.id.category_item_tv,value.name);
        baseViewHolder.setVisible(R.id.category_sel_view,value.selFlag);
    }
}
